package com.hualude.roadsign.model;

import javax.persistence.*;

/**
 * Created by xu_jiaHui on 2017/10/13.
 */
@Entity
@Table(name = "tb_alarm", schema = "hualude_db", catalog = "")
public class AlarmEntity {
    private Integer alarmId;
    private String deviceId;
    private Integer deviceState;
    private String deviceModel;
    private Integer deviceOrgId;
    private String deviceManufacturer;
    private String deviceAddress;
    private String deviceIpAddress;
    private Integer devicePort;
    private Integer createUser;
    private String createTime;
    private String updateTime;
    private Integer deviceType;
    private Integer devicePathId;
    private Integer cycleTime;
    private String specialPoint;


    public AlarmEntity() {
    }


    public AlarmEntity(String deviceId, Integer deviceState, String deviceModel, Integer deviceOrgId, String deviceManufacturer, String deviceAddress, Integer createUser, String createTime, String updateTime, Integer deviceType) {
        this.deviceId = deviceId;
        this.deviceState = deviceState;
        this.deviceModel = deviceModel;
        this.deviceOrgId = deviceOrgId;
        this.deviceManufacturer = deviceManufacturer;
        this.deviceAddress = deviceAddress;
        this.createUser = createUser;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.deviceType = deviceType;
    }

    @Id
    @Column(name = "AlarmId")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getAlarmId() {
        return alarmId;
    }

    public void setAlarmId(Integer alarmId) {
        this.alarmId = alarmId;
    }

    @Basic
    @Column(name = "DeviceId")
    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    @Basic
    @Column(name = "DeviceState")
    public Integer getDeviceState() {
        return deviceState;
    }

    public void setDeviceState(Integer deviceState) {
        this.deviceState = deviceState;
    }

    @Basic
    @Column(name = "DeviceModel")
    public String getDeviceModel() {
        return deviceModel;
    }

    public void setDeviceModel(String deviceModel) {
        this.deviceModel = deviceModel;
    }

    @Basic
    @Column(name = "DeviceManufacturer")
    public String getDeviceManufacturer() {
        return deviceManufacturer;
    }

    public void setDeviceManufacturer(String deviceManufacturer) {
        this.deviceManufacturer = deviceManufacturer;
    }

    @Basic
    @Column(name = "DeviceAddress")
    public String getDeviceAddress() {
        return deviceAddress;
    }

    public void setDeviceAddress(String deviceAddress) {
        this.deviceAddress = deviceAddress;
    }

    @Basic
    @Column(name = "DeviceIpAddress")
    public String getDeviceIpAddress() {
        return deviceIpAddress;
    }

    public void setDeviceIpAddress(String deviceIpAddress) {
        this.deviceIpAddress = deviceIpAddress;
    }

    @Basic
    @Column(name = "DevicePort")
    public Integer getDevicePort() {
        return devicePort;
    }

    public void setDevicePort(Integer devicePort) {
        this.devicePort = devicePort;
    }

    @Basic
    @Column(name = "DeviceOrgId")
    public Integer getDeviceOrgId() {
        return deviceOrgId;
    }

    public void setDeviceOrgId(Integer deviceOrgId) {
        this.deviceOrgId = deviceOrgId;
    }

    @Basic
    @Column(name = "CreateTime")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "UpdateTime")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }


    @Basic
    @Column(name = "CreateUser")
    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }


    @Basic
    @Column(name = "DeviceType")
    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    @Basic
    @Column(name = "DevicePathId")
    public Integer getDevicePathId() {
        return devicePathId;
    }

    public void setDevicePathId(Integer devicePathId) {
        this.devicePathId = devicePathId;
    }

    @Basic
    @Column(name = "CycleTime", nullable = true)
    public Integer getCycleTime() {
        return cycleTime;
    }

    public void setCycleTime(Integer cycleTime) {
        this.cycleTime = cycleTime;
    }


    @Basic
    @Column(name = "SpecialPoint", nullable = true)
    public String getSpecialPoint() {
        return specialPoint;
    }

    public void setSpecialPoint(String specialPoint) {
        this.specialPoint = specialPoint;
    }
}
